#ifndef HOTKEYEDITOR_H
#define HOTKEYEDITOR_H

#include <QtGui/QDialog>
#include <QtDebug>
#include <QKeyEvent>
#include <QKeySequence>
#include <QString>

namespace Ui {
    class HotKeyEditor;
}

class HotKeyEditor : public QDialog {
    Q_OBJECT
    Q_DISABLE_COPY(HotKeyEditor)
public:
    explicit HotKeyEditor(QWidget *parent = 0);
    virtual ~HotKeyEditor();
    void show(QString key);
protected:
    virtual void changeEvent(QEvent *e);
    void keyPressEvent(QKeyEvent *event);
public slots:
    void okClick();
    void cancelClick();
private:
    Ui::HotKeyEditor *m_ui;
};

#endif // HOTKEYEDITOR_H
